package com.ddh.ddhsanguogame.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 玩家与同盟关系表
 * </p>
 *
 * @author ddh
 * @since 2025-06-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("card_user_alliance")
@ApiModel(value="CardUserAlliance对象", description="玩家与同盟关系表")
public class CardUserAlliance implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "玩家ID")
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private Long userId;

    @ApiModelProperty(value = "同盟ID")
    private Long allianceId;

    @ApiModelProperty(value = "玩家加入同盟的时间")
    private LocalDateTime joinTime;

    @ApiModelProperty(value = "玩家在同盟中的职位")
    private String position;


}
